import { createRouter, createWebHistory } from 'vue-router'
import index from '../views/index.vue'
import test from '../views/test.vue'
import registview from '../views/regist.vue'
import showview from '../views/show.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView
    // },
     {
      path: '/test',
      name: 'test',
      component: test
    }, {
      path: '/registview',
      name: 'registview',
      component: registview
    },{
      path: '/showview',
      name: 'showview',
      component: showview
    },
    {
      path: '/',
      name: 'index',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/index.vue')
    }
  ]
})

export default router
